{% macro gen_table(bills) %}
    <table id="user-info-table" class="table table-bordered table-hover table-condensed table-striped">
        <thead>
            <tr>
                <th>ID</th>
                <th>用户ID</th>
                <th>手机号</th>
                <th>昵称</th>
                <th>支付渠道</th>
                <th>交易号</th>
                <th>类型</th>
                <th>子类型</th>
                <th>金额</th>
                <th>状态</th>
                <th>创建时间</th>
                <th>更新时间</th>
            </tr>
        </thead>
        <tbody>
            {% for bill in bills %}
            <tr>
                <td>{{ bill.id }}</td>
                <td>{{ bill.uid }}</td>
                <td>{{ bill.owner.mobile | encrypt }}</td>
                <td><a href="{{ url_for('op_bp.user_info', user_id=bill.uid) }}" target="_blank">{{ bill.owner.nickname }}</a></td>
                <td>{{ bill.chnl_display }}</td>
                <td>{{ bill.chnl_code }}</td>
                <td>{{ bill.type_display }}</td>
                <td>{{ bill.subtype_display }}</td>
                <td>{{ bill.amt }}</td>
                <td>{{ bill.status_display }}</td>
                <td>{{ bill.created_datetime }}</td>
                <td>{{ bill.updated_datetime }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
{% endmacro %}
